﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Three
{
    enum E_SnakeType
    { 
        HEAD,
        BODY
    }

    internal class SnakeBody : GameObject
    {
        E_SnakeType type;

        public SnakeBody(E_SnakeType type, int x, int y)
        { 
            this.type = type;
            pos = new Position(x, y);
        }

        public override void Draw()
        {
            Console.SetCursorPosition(pos.x, pos.y);
            Console.ForegroundColor = type == E_SnakeType.HEAD ? ConsoleColor.Yellow : ConsoleColor.Green;
            Console.Write(type == E_SnakeType.HEAD ? "●" : "○");
        }
    }
}
